﻿using System;
using System.Linq;
using DynCMS.NET.Core.Entities;
using DynCMS.NET.DataAccess.Implementation;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DynCMS.NET.DataAccess.Test
{
    [TestClass]
    public class BaseDataContextTest
    {
        [TestInitialize]
        public void DropCreateDatabase()
        {
            DataContext dc = new DataContext();
            dc.Database.Initialize(false);
            dc.Database.CreateIfNotExists();
        }

        [TestCleanup]
        public void DropDatabase()
        {
            DataContext dc = new DataContext();
            dc.Database.Delete();
        }
    }
}